package nlpeap.tms.components;

/**
 * The description of the <code>Name Entity</code><br>
 * The information includes the start position of the
 * <code>Name Entity</code> in the sentence, the tag
 * of the Entity and it's content
 * 
 * @author chuter
 *
 */
public class NameEntity {
	//the position in the sentence
	public final int startSentPos;
	//the content of the Name Entity
	public final String content;
	//the tag of the Name Entity
	public String tag = null;
	//the original form of the Name Entity, for example,
	//today should have the original data linke 2009-12-25
	private String origForm;
	
	public NameEntity(int startSentPos,
			String content,
			String tag) {
		this.startSentPos = startSentPos;
		this.content = content;
		this.tag = tag;
		origForm = content;
	}
	
	public void setOrigForm(String origForm) { this.origForm = origForm; }
	public String getOrigFom() { return origForm; }
	
	public String toString() {
		return String.format("[%s %d %s %s]", content, startSentPos, tag, origForm);
	}
}

